package com.service.impl;

import com.dao.IRegisterDAO;
import com.dao.impl.RegisterDAOImpl;
import com.pojo.SUser;
import com.service.IRegisterService;

public class RegisterServiceImpl implements IRegisterService {
    private IRegisterDAO dao = new RegisterDAOImpl();
    /*判断用户是否存在*/
    @Override
    public SUser findInfo(String name) {
        return dao.selectInfo(name);
    }
/*注册成功添加用户*/
    @Override
    public void addUser(SUser sUser) {
        dao.insertUser(sUser);
    }


}
